FreescaleCAN
 
 
 Bean FreescaleCAN
 
CAN communication for Freescale implementation

User types are derived from basic types and they are designed for usage in driver interface. The following types are supported: pointer, array, structure, union and user declaration.

User types:

  • BeanName_TError : user definition
    typedef union {
      word err;
      struct {
        bool OverRun : 1;   /* Overrun error flag */
        bool RxBufOvf : 1;   /* Rx buffer full error flag */
        bool Idle : 1;   /* Idle character detect */
        bool BusOff : 1;   /* Bus-off state */
        bool TxPassive : 1;   /* Transmitter error passive */
        bool RxPassive : 1;   /* Reciver error passive */
        bool TxWarning : 1;   /* Transmitter warning */
        bool RxWarning : 1;   /* Receiver warning */
        bool Ack : 1;   /* Acknowledge error */
        bool Crc : 1;   /* CRC error */
        bool Form : 1;   /* Form error */
        bool Stuff : 1;   /* Stuff bit error */
        bool Bit0 : 1;   /* Bit 0 error */
        bool Bit1 : 1;   /* Bit 1 error */
      }errName;
    } BeanName_TError;
    Error flags. For languages which don't support bit access is byte access only to error flags possible.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.